<div class="row">
	<div class="col-xs-12">
		<div class="row well well-sm">
			<div class="col-xs-12 col-sm-6 col-sm-offset-3"><?php
		echo form_open(null,array(
			'class'=>'form-horizontal','role'=>'form'
		));
			?>
			<div class="form-group">
				<label class="col-sm-5 col-md-4 col-lg-3 control-label">Tên chủng loại</label>
				<div class="col-sm-7 col-md-8 col-lg-9"><?php
					echo form_input(array(
						'name'=>'name','value'=>set_value('name'),
						'placeholder'=>'Tên chủng loại','class'=>'form-control',
						'required'=>'required'
					));
					echo form_error('name');
				?></div>
			</div>
			<div class="form-group">
				<label class="col-sm-5 col-md-4 col-lg-3 control-label">Sort</label>
				<div class="col-sm-7 col-md-8 col-lg-9"><?php
					echo form_input(array(
						'name'=>'sort','value'=>set_value('sort'),
						'placeholder'=>'Order','class'=>'form-control',
						'required'=>'required'
					));
					echo form_error('sort');
				?></div>
			</div>
			<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Kích Hoạt:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'tinh-trang','style'=>'vertical-align:-3px',
							'value'=>'1','checked'=>set_checkbox('tinh-trang','1',true)
						)).' Kích Hoạt</label> &nbsp;&nbsp';
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'tinh-trang','style'=>'vertical-align:-3px',
							'value'=>'0','checked'=>set_checkbox('tinh-trang','0')
						)).' Không Kích Hoạt</label>';
						echo form_error('tinh-trang');
					?></div>
				</div>
			<div class="form-group">
				<div class="col-sm-offset-5 col-md-offset-4 col-lg-offset-3 col-sm-7 col-md-8 col-lg-9"><?php
					echo form_submit(array(
						'name'=>'submit','value'=>'Thêm',
						'class'=>'btn btn-success'
					));
				?></div>
			</div>
		<?php
		echo form_close();
		?></div>
		</div>
	</div>
</div>